<template>
  <div id="app">
    <nav-menu :nav-menu="navMenu"/>
    <router-view/>
  </div>
</template>

<script>
import Vue from 'vue'
import '@/style/common.less'
import NavMenu from "@/views/home/components/nav-menu/nav-menu";
// import {Loading} from "element-ui";
// Loading.service();
// Loading.service().close()
export default {
  name: 'App',
  components: {NavMenu},
  data() {
    return {
      navMenu: 0
    }
  },
  created() {
    Vue.prototype.origin = window.location.origin
  },
  watch: {
    '$route'(newValue){
      this.navMenu = newValue.meta.navMenu
    }
  }
}
</script>

<style>
  #app {
    /*min-width: 100vw;*/
    min-height: 100vh;
    background-color: #f4f5f5;
    overflow: hidden;
  }
</style>
